home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000427_janl@math.uio.no_Thu Mar 24 23:29:03 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from pat.uio.no by cs.umb.edu with SMTP id AA25298
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 24 Mar 1994 16:29:27 -0500
  3. Received: from ulrik.uio.no by pat.uio.no with local-SMTP (PP) 
  4.           id <15423-0@pat.uio.no>; Thu, 24 Mar 1994 22:29:06 +0100
  5. Received: from mnemosyne.uio.no by smaug.uio.no ;
  6.           Thu, 24 Mar 1994 22:29:04 +0100
  7. Message-Id: <9403242129.AAsmaug15258@smaug.uio.no>
  8. To: tex-k@cs.umb.edu
  9. Subject: 
  10. Date: Thu, 24 Mar 1994 22:29:03 +0100
  11. From: Nicolai Langfeldt <janl@math.uio.no>
  12.  
  13.  
  14. The bug Peter Hofmann <peterh@prz.tu-berlin.de> found seem to have
  15. cleared up all the problems I've had with file locating I have
  16. described previously. Since some mailer ate parts of Peter's mail
  17. before it arrived here, and I had to do some 'interpretation' of it,
  18. here is a diff that shows what I did. MANY thanks to Peter!
  19.  
  20. --- db.c.orig    Thu Mar 24 13:08:59 1994
  21. +++ db.c    Thu Mar 24 13:09:49 1994
  22. @@ -81,7 +81,7 @@
  23.  {
  24.    static hash_table_type db;
  25.    str_list_type ret;
  26. -  string *db_dirs;
  27. +  string *db_dirs, *save_db_dirs;
  28.    boolean done = false;
  29.    
  30.    /* Hash up the database if this is the first call.  */
  31. @@ -92,7 +92,7 @@
  32.      }
  33.    
  34.    /* Look up NAME.  */
  35. -  db_dirs = hash_lookup (db, name);
  36. +  save_db_dirs = db_dirs = hash_lookup (db, name);
  37.  
  38.    ret = str_list_init (); /* Some old compilers ...  */
  39.    
  40. @@ -116,7 +116,7 @@
  41.      }
  42.    
  43.    /* This is just the space for the pointers, not the strings.  */
  44. -  if (db_dirs && *db_dirs) free (db_dirs);
  45. +  if (db_dirs && *db_dirs) free (save_db_dirs);
  46.    
  47.    return ret;
  48.  }
  49.  
  50. Nicolai
  51.  
  52.  
  53.  
  54. --
  55. Nicolai Langfeldt, janl@math.uio.no
  56. Linux miscellanea, TeX stuff